From: Kenichi Handa Date: Wed, 17 Jun 2009 00:42:07 +0000 (+0000) Subject: (detect_coding_utf_16): Fix previous change. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~366 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=632de8596ceb13e345a25558470137f34da652eb;p=emacs.git (detect_coding_utf_16): Fix previous change. --- diff --git a/src/coding.c b/src/coding.c index cde56d9af42..6dbf05ce0aa 100644 --- a/src/coding.c +++ b/src/coding.c @@ -1669,7 +1669,8 @@ detect_coding_utf_16 (coding, detect_info) |CATEGORY_MASK_UTF_16_BE | CATEGORY_MASK_UTF_16_LE); - while (detect_info->rejected != CATEGORY_MASK_UTF_16) + while ((detect_info->rejected & CATEGORY_MASK_UTF_16) + != CATEGORY_MASK_UTF_16) { TWO_MORE_BYTES (c1, c2); if (c2 < 0)